/*
 * @Date: 2022-07-13 21:37:21
 * @LastEditTime: 2022-07-14 10:47:19
 */
import { request } from 'axios'

export function createComment (movieId, usercomment) {
  return request({
    url: '/api/comment/giveComment',
    method: 'post',
    params: {
      movie_id: movieId,
      usercomment
    }
  })
}

export function getUserComment (otherUid) {
  return request({
    url: '/api/comment/findComment',
    method: 'post',
    params: {
      otherUid
    }
  })
}

export function findMovieComment (movieId) {
  return request({
    url: '/api/comment/findComment'
  })
}
